#include "platform.h"
#include "SoftPWM.h"

SFPwm_t pwm;
void main()
{
    SFPwm_Init(&pwm, PWM_BASEADDR) ;
    SFPwm_Polarity(&pwm,0x1) ;

    SFPwm_ARR(&pwm,0,10) ;
    SFPwm_CCR(&pwm,0,5) ;

    SFPwm_ARR(&pwm,1,10) ;
    SFPwm_CCR(&pwm,1,5) ;

    pwm.enable = 0x3 ;

	while(1){
        SFPwm_Yield(&pwm);
	}

    
	return ;
}


